<template>
	<rui-card>
		<view class="notice">
			<view v-for="(item,index) in list" :key="index">
				<uni-notice-bar showIcon scrollable single v-if="item.category == 'roll'" :text="item.content" />
				<view class="ad" v-if="item.category == 'image'" @click="$rui.route(item.content)">
					<image :src="item.image" mode="widthFix" :style="'height: '+imgHeight+'rpx;width: 100%;'"></image>
				</view>
			</view>

		</view>
	</rui-card>

</template>
<script setup>
	defineProps({
		list: Array,
		imgHeight: {
			type: Number,
			default: 160
		}
	})
</script>
<style lang="scss" scoped>
	.notice {}
</style>